package net.shenru.encogs;

import java.lang.Character.UnicodeBlock;

import net.shenru.os.utlis.UniqueIdGenerator;

/**
 * 爬虫任务
 */
public class EncogTask {

	private long id;

	private EncogType type;

	private String startUrl;
	private boolean isSingle;
	private String label;

	public EncogTask() {
		this(UniqueIdGenerator.getInstance().getLongId());
	}
	public EncogTask(long id) {
		super();
		this.id = id;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getStartUrl() {
		return startUrl;
	}

	public void setStartUrl(String startUrl) {
		this.startUrl = startUrl;
	}

	public boolean isSingle() {
		return isSingle;
	}

	public void setSingle(boolean isSingle) {
		this.isSingle = isSingle;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public EncogType getType() {
		return type;
	}

	public void setType(EncogType type) {
		this.type = type;
	}
}
